home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc51bugs.zip / Q28687 < prev    next >
Text File  |  1988-07-29  |  1KB  |  42 lines

  1. Q28687 _ellipse Does Not Fill Interior
  2. C Compiler
  3. 5.00 5.10 | 5.10
  4. MS-DOS    | OS/2
  5.  
  6. Problem:
  7.    The following code draws two ellipses. The first is filled with
  8. the default color, but the second is not. It is left empty as if
  9. _GBORDER were used instead of _GFILLINTERIOR.
  10.  
  11.                 #include <conio.h>
  12.                 #include <graph.h>
  13.  
  14.                 main()
  15.                 {
  16.                   _setvideomode(_ERESCOLOR) ;
  17.                   _ellipse (_GFILLINTERIOR, 300, 0, 340, 479) ;
  18.                   _ellipse (_GFILLINTERIOR, 0, 220, 639, 260) ;
  19.           while  ( !kbhit() ) ;
  20.                   _setvideomode (_DEFAULTMODE) ;
  21.                 }
  22.  
  23. Response:
  24.    Microsoft has confirmed this to be a problem in Versions 5.00 and
  25. 5.10. We are researching this problem and will post new information as
  26. it becomes available.
  27.    To work around the problem, use the _setcolor function to specify a
  28. a color immediately before the second _ellipse, as in the following:
  29.  
  30.                 {
  31.                   _setvideomode(_ERESCOLOR) ;
  32.                   _ellipse (_GFILLINTERIOR, 300, 0, 340, 479) ;
  33.  
  34.                   _setcolor(1) ;
  35.                   _ellipse (_GFILLINTERIOR, 0, 220, 639, 260) ;
  36.  
  37.                 }
  38.  
  39.  
  40. Keywords:  buglist5.00 buglist5.10
  41. Updated  88/07/29 14:28
  42.